package com.example.pixelyear.bean;

import com.google.gson.Gson;

public class VersionBean {

    /**
     * version : 1.0.0
     * msg : 0
     * apk :
     * splash :
     * showDialog : {"dialog_msg":"","ban_cancel":false,"code":0}
     */

    private String version;
    private String msg;
    private String apk;
    private String splash;
    private ShowDialogBean showDialog;

    public static VersionBean objectFromData(String str) {
        return new Gson().fromJson(str, VersionBean.class);
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getApk() {
        return apk;
    }

    public void setApk(String apk) {
        this.apk = apk;
    }

    public String getSplash() {
        return splash;
    }

    public void setSplash(String splash) {
        this.splash = splash;
    }

    public ShowDialogBean getShowDialog() {
        return showDialog;
    }

    public void setShowDialog(ShowDialogBean showDialog) {
        this.showDialog = showDialog;
    }

    public static class ShowDialogBean {
        /**
         * dialog_msg :
         * ban_cancel : false
         * code : 0
         */

        private String dialog_msg;
        private boolean ban_cancel;
        private int code;

        public String getDialog_msg() {
            return dialog_msg;
        }

        public void setDialog_msg(String dialog_msg) {
            this.dialog_msg = dialog_msg;
        }

        public boolean isBan_cancel() {
            return ban_cancel;
        }

        public void setBan_cancel(boolean ban_cancel) {
            this.ban_cancel = ban_cancel;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }
}
